import * as request from "@/utils/request.js"

export function getInfo() {
    return request.get("getInfo");
}

export function logout(){
    return request.get("logout");
}

export function getUserList(params){
    return request.get("/system/user/list",params);
}

export function addUser(data){
    return request.postJson("/system/user",data);
}

export function updateUser(data){
    return request.putJson("/system/user",data);
}

export function deleteUser(userIdList){
    return request.default({
        url:`/system/user/${userIdList}`,
        method:"delete"
    });
}